<template>
  <div>
    <button @click="text">测试编程式导航</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      active: 0
    }
  },
  methods: {
    text () {
      this.$router.push('/my')
    }
  }
}
</script>

<style lang="less" scoped>
</style>
